<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [1,2,3]
        var res=arr.map(function(item){
            return item*2;
        })
        console.log(res);
        var arr1 = [
            {name:"html",value:"12px"},
            {name:"css",value:"13px"},
            {name:"js",value:"14px"}
        ]
         arr1.map(function(item){
           console.log(item.value)
           var value = parseInt(item.value)*2;
           item.value = value;
        })
        console.log(arr1)
    </script>
</body>
</html>